<script setup>
import HelloWorld from './components/HelloWorld.vue'
import ButtonCounter from './components/ButtonCounter.vue'
import Message from './components/Message.vue'
import { ref } from 'vue'
const msg = ref('这是父组件传递的参数')
const modify = () => {
  msg.value = "这是一个新值，由子组件触发"
}
</script>

<template>
  <div>
  
  </div>
  <HelloWorld msg="Vite + Vue" />
  <!-- 在APP.vue中导入组件-->
   <ButtonCounter :step="2"/>
  <ButtonCounter :step="20"/>
  <Message :msg="msg" @updateMsg="modify"/>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
